package com.zh.ssmshirofreemarker.mapper;

import com.zh.ssmshirofreemarker.entity.RolePermission;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.zh.ssmshirofreemarker.entity.User;

import java.util.List;
import java.util.Set;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ZH
 * @since 2018-07-24
 */
public interface RolePermissionMapper extends BaseMapper<RolePermission> {


    public Set<String> getPermissionsByUserName(User user);

    public List<Long> getPermissionsByRoleId(Long roleId);

    List<Long> selectPermissionIdsByRoleId(Long roleId);
}
